const DASHBOARD_URL = 'https://ilive.qq.com/h5/databroad/single.html';

interface Params {
    roomId: number;
    programId: string;
    hideBackBtn: boolean;
}
export const getUrl = (params: Params): string => {
    let link = `${DASHBOARD_URL}?roomID=${params.roomId}&programID=${params.programId}`;
    if (params.hideBackBtn) {
        link = `${link}&back_btn_hide=1`;
    }

    return link;
};
